Create script
Create a Cloud-Code script. Please check Parameter parsing for scripts to see how the command parse parameter in script.
If you plan to create multiple scripts, checkout Deploy.
Command
Authentication Required: Yes
ugs cloud-code create <script-name> <file-path> [options]
Arguments
<script-name>
The name of the script to create
<file-path>
File path of the script to copy
Options
Option | Alias | Description |
---|---|---|
project-id | -p, --project-id | The Unity cloud project ID. |
environment | -e, --environment-name | The services environment name. |
type | -t, --type | Type of the target script. |
language | -l, --language | Language of the target script. |
help | -?, -h, --help | Display help and usage information. |
quiet | -q, --quiet | Reduce logging to a minimum. |
json | -j, --json | Use JSON as the output format. |